www.gusucode.com > VC++迷宫游戏源代码源码程序 > VC++迷宫游戏源代码源码程序\code\WinGame 2.7\Include\AnimCtrl.cpp
//Download by http://www.NewXing.com // AnimCtrl.cpp: implementation of the CAnimCtrl class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "AnimCtrl.h" #include <list> //======================================================================================= // 动画控制类的具体实现 //======================================================================================= CShowList g_AnimList;//存放所有动画的链表 //========================================================================================= void CAnimCtrl::New(CBmp24*p,int x,int y) { m_pBmp=p; m_x=x; m_y=y; m_Idx=0; m_EffectFlag=0; m_Depth=0;//默认为零 New();//一定别忘了,添加到g_AnimList } void CAnimCtrl::New(CBmp24*p,int x,int y,int depth) { m_pBmp=p; m_x=x; m_y=y; m_Idx=0; m_EffectFlag=0; m_Depth=depth; New();//一定别忘了,添加到g_AnimList } void CAnimCtrl::SetDepth(int depth) { g_AnimList.Remove(this); m_Depth=depth; g_AnimList.Add(this); } //====================================================================================== CAnimCtrl::CAnimCtrl() { m_x=m_y=0; m_Idx=0; m_EffectFlag=0; m_pBmp=0; m_Depth=0; } CAnimCtrl::~CAnimCtrl(){}